package com.gdust.gkyx.search.service;

import com.gdust.gkyx.model.search.SkuEs;
import com.gdust.gkyx.vo.search.SkuEsQueryVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * ClassName: SkuService
 * Package: com.gdust.gkyx.search.service
 * Description:
 *
 * @Author syun
 * @Create 2025/1/26 11:11
 * @Version 1.0
 */
public interface SkuService {
    /**
     * //上架
     * @param skuId
     */
    void upperSku(Long skuId);

    /**
     *  //下架
     * @param skuId
     */
    void lowerSku(Long skuId);

    //获取爆款商品
    List<SkuEs> findHotSkuList();

    //查询分类商品
    Page<SkuEs> search(Pageable pageable, SkuEsQueryVo skuEsQueryVo);

    //更新商品热度
    void incrHotScore(Long skuId);
}
